<%@page import="bean.ScoreVO"%>
<%@page import="bean.ScoreDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/score.css" />
<script type="text/javascript" src="../js/score.js"></script>
<title>점수 삭제(delete_result.jsp)</title>
</head>
<body>
<jsp:useBean id="vo" class = 'bean.ScoreVO' scope='page'/>
<jsp:setProperty property="*" name="vo"/>
<%
	out.print(vo.getRno());
	ScoreDTO sdto = new ScoreDTO();
	sdto.setVo(vo);
	boolean bolean = false;
	bolean = sdto.delete();
	if(bolean){
%>
<script type="text/javascript">alert('성공적으로 삭제 되었습니다.');</script>
<%}
	else{
	%>
	<script type="text/javascript">alert("삭제에 실패 하였습니다.");</script>
	<%} %>

<input type="button" value="점수 목록으로" id= "btnList"/>
<script type="text/javascript">deleteInit();</script>
</body>
</html>